Is it okay to use array[key] in PHP?

Posted by terrani on Stack Overflow See other posts from Stack Overflow or by terrani
Published on 2010-03-08T23:03:59Z Indexed on 2010/03/08 23:06 UTC
Read the original article Hit count: 139

Filed under:
|

Hi,

I have a simple question. Is it okay to use array without single or double quotion like $array[key]? I thought it is bad because PHP look for constant first if I don't use single or doulbe quotion. One of my colleagues told me that it does not matter.

WHat do you guys think?

© Stack Overflow or respective owner

Related posts about php

Related posts about array-key